package cn.gson.boot.controller;

import cn.gson.boot.model.pojos.Stage;
import cn.gson.boot.model.service.StageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/stage")
public class StageController {
    @Autowired
    StageService stageService;

    /**
     * 阶段列表
     * @return
     */
    @RequestMapping("/stage-list")
    @ResponseBody
    public List<Stage> SelectStage(){
        return stageService.selectStage();
    }
}
